SRCS	:= $(wildcard *.cpp)

CC		= g++
INCPATH	= ../../include 
INCPATH2 = ./bochs
CCFLAG	= -I $(INCPATH) -I $(INCPATH2) -c -g -O3 -static

FRONT_END_OBJS = IA32Interpreter.o  IA32Syscall.o 

BACK_END_OBJS = 

all: $(FRONT_END_OBJS) $(BACK_END_OBJS)
	make -C bochs 
	echo "done!"

$(FRONT_END_OBJS):%.o:%.cpp
	$(CC) $(CCFLAG) $? -o $@

$(BACK_END_OBJS):%.o:%.cpp
	$(CC) $(CCFLAG) $? -o $@

clean:
	make clean -C bochs 
	rm -rf ./bochs/*.o
	rm -rf *.o
